package com.yanqu.road.server.manger.kowloon.battle.role.bullet;

import com.yanqu.road.server.manger.kowloon.battle.KowloonGame;
import com.yanqu.road.server.manger.kowloon.battle.role.enemy.KowloonEnemy;

public class KowloonBulletInkfish extends KowloonBullet {

    public KowloonBulletInkfish(KowloonGame game) {
        super(game);
    }

    @Override
    public void init() {

    }

    @Override
    public void updateAI(double dt) {
        KowloonEnemy enemy = this.getHitEnemy();
        if (enemy != null) {
            this.enemyIds.add(enemy.id);
            enemy.beHurt(this.bulletType, +this.shooter.data.getProperty().getAttack());
            enemy.addBuffByBullet(this);
            this.destroy();
        }
    }
}
